package cn.linkpower.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import cn.linkpower.aop.TokenAspcetj.AccessResource;

@RestController
public class TestController {
	
	@RequestMapping("/test1")
	public String test1() {
		return "6666";
	}
	
	@RequestMapping("/test2")
	@AccessResource // 追加自定义注解
	public String test2(@RequestParam(value = "token",required = false) String token) {
		return "999999";
	}
}
